package com.syni.mdd.sjb.common.component.mybatis.dxshapp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cfx
 * @since 2020-04-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BmsUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 微信openid
     */
    private String openid;

    /**
     * 小程序openId
     */
    private String minOpenid;

    /**
     * 支付宝唯一用户id
     */
    private String aliUserId;

    /**
     * 支付宝头像url
     */
    private String aliAvatar;

    /**
     * 支付宝登陆返回的省份
     */
    private String aliProvince;

    /**
     * 支付宝返回的城市
     */
    private String aliCity;

    /**
     * 支付宝登陆返回的昵称
     */
    private String aliNickName;

    /**
     * 0：女，1：男
     */
    private Integer aliGender;

    /**
     * 用户体系注册成功的accountId
     */
    private String accountId;

    /**
     * 电享生活号
     */
    private String dxshh;

    /**
     * 用户呢称（方便后台查询使用）
     */
    private String loginName;

    /**
     * 性别，（0：代表女，1：代表男）
     */
    private Integer sex;

    /**
     * 生日日期（app使用）
     */
    private String birthday;

    /**
     * 账号创建方式：0:后台创建 1：微信注册，2：app直接注册，3：app微信第三方登陆注册，4：小程序注册
     */
    private Integer createWay;

    /**
     * 细分注册渠道，1：营销工具注册
     */
    private Integer channel;

    /**
     * 注册时间
     */
    private LocalDateTime newTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 打卡称号
     */
    private String dkName;

    /**
     * 定位城市
     */
    private String locationCity;

    /**
     * 定位区域
     */
    private String locationDistrict;

    /**
     * 最近一次经度
     */
    private String latitude;

    /**
     * 最近一次纬度
     */
    private String longitude;

    /**
     * 最近一次登录时间
     */
    private LocalDate loginTime;

    private String unionid;

    /**
     * 电话号码
     */
    private String phone;

    /**
     * 头像
     */
    private String headImg;

    /**
     * 是否冻结，0：未冻结，1：已冻结（用户端）
     */
    private Integer isFreeze;

    /**
     * 是否冻结，0：未冻结，1：已冻结（商户端）
     */
    private Integer isFreezeBus;

    /**
     * 是否评论，0：可以评论，1：不能评论
     */
    private Integer isComment;

    /**
     * 是否设置密码（0未设置，1已设置）
     */
    private Integer isSetPwd;

    /**
     * 是否删除，0：未删除，1：已删除
     */
    private Integer isDelete;

    /**
     * 标识上次登陆是否是用超级密码登陆，用于区分是否显示营销工具，0：否，1：是
     */
    private Integer ideUse;

    /**
     * 推荐人数：通过此人推荐下载app并且成功注册，累计加一
     */
    private Integer recommendNum;

    /**
     * 注册ip
     */
    private String registerIp;

    /**
     * 商家初次登陆时间
     */
    private LocalDateTime businessTime;

    private Integer money;


    public static final String ID = "id";

    public static final String OPENID = "openid";

    public static final String MIN_OPENID = "min_openid";

    public static final String ALI_USER_ID = "ali_user_id";

    public static final String ALI_AVATAR = "ali_avatar";

    public static final String ALI_PROVINCE = "ali_province";

    public static final String ALI_CITY = "ali_city";

    public static final String ALI_NICK_NAME = "ali_nick_name";

    public static final String ALI_GENDER = "ali_gender";

    public static final String ACCOUNT_ID = "account_id";

    public static final String DXSHH = "dxshh";

    public static final String LOGIN_NAME = "login_name";

    public static final String SEX = "sex";

    public static final String BIRTHDAY = "birthday";

    public static final String CREATE_WAY = "create_way";

    public static final String CHANNEL = "channel";

    public static final String NEW_TIME = "new_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String DK_NAME = "dk_name";

    public static final String LOCATION_CITY = "location_city";

    public static final String LOCATION_DISTRICT = "location_district";

    public static final String LATITUDE = "latitude";

    public static final String LONGITUDE = "longitude";

    public static final String LOGIN_TIME = "login_time";

    public static final String UNIONID = "unionid";

    public static final String PHONE = "phone";

    public static final String HEAD_IMG = "head_img";

    public static final String IS_FREEZE = "is_freeze";

    public static final String IS_FREEZE_BUS = "is_freeze_bus";

    public static final String IS_COMMENT = "is_comment";

    public static final String IS_SET_PWD = "is_set_pwd";

    public static final String IS_DELETE = "is_delete";

    public static final String IDE_USE = "ide_use";

    public static final String RECOMMEND_NUM = "recommend_num";

    public static final String REGISTER_IP = "register_ip";

    public static final String BUSINESS_TIME = "business_time";

    public static final String MONEY = "money";

}
